<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/1/16
 * Time: 13:54
 */

namespace YMApi\Model;


use Think\Model;

/**
 * Class TouchNavModel
 * @package SDXApi\Model
 */
class TouchNavModel extends Model
{
	/**
	 * 返回设置显示的导航数据
	 * Created by Jerry
	 * @return mixed
	 */
	public function get_touch_nav_list()
	{
		$where = array(
			'ifshow'	=>	1,
		);

		$field = 'ctype, cid, name, vieworder, opennew, url, pic, type';

		return $this->field($field)->where($where)->order('vieworder desc')->select();
	}
}